<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'checkUser.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
div{
	width:500px;
	height:500px;
	
}
table{

border-top:1px solid gray;
border-left:1px solid gray;
}
tr{

}
td{
margin:0px;
width:100px;
text-align:center;
border-right:1px solid gray;
border-bottom:1px solid gray;

}


</style>
  </head>
  
  <body>
  <div>
  <table  >
  <thead>
  <tr >
  <td>管理员账号</td>
   <td>状态</td>
    <td>操作</td>
    <td>编辑</td>
  </tr>
  </thead>
  <tbody>
  <c:forEach items="${requestScope.users }" var="user">
  <tr >
  <td>${user.username}</td>
  <c:if test="${user.state=='0' }">
   <td>启用</td>
  </c:if>
 <c:if test="${user.state=='1' }">
   <td>停用</td>
  </c:if>
  <td><a href="jsp/user/del_list?username=${user.username}">删除</a></td>
  <td><a href="jsp/user/show_list?username=${user.username}">修改</a></td>
  </tr>
  </c:forEach>
  </tbody>
  </table>
  </div>
  </body>
</html>
